package org.come.control;

import org.come.Frame.GoodsExchangeJframe;
import org.come.action.FromServerAction;
import org.come.bean.GoodSEarchBean;
import org.come.until.FormsManagement;
import org.come.until.GsonUtil;

public class GoodsForGoodsSearchAction implements FromServerAction {
    @Override
    public void controlMessFromServer(String mes, String type) {
        GoodSEarchBean goodsbean = GsonUtil.getGsonUtil().getgson().fromJson(mes, GoodSEarchBean.class);
        GoodsExchangeJframe.getGoodDetailedJframe().getGoodsExchangeJpanel().removeAll();
        GoodsExchangeJframe.getGoodDetailedJframe().getGoodsExchangeJpanel().initGoodsList(goodsbean.getReturnListBean());
        FormsManagement.showForm(90);
    }
}
